package ${sourceBasePackage}.mapper;

import ${sourceBasePackage}.dto.${entityName}Dto;
import ${sourceBasePackage}.dto.${entityName}SearchDto;
import ${sourceBasePackage}.entity.${entityName}Entity;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ${description}Mapper
 * @author： ${author}
 */
@Mapper
public interface ${entityName}Mapper {

	Page<${entityName}Dto> findByPage(${entityName}SearchDto ${entityName?uncap_first}SearchDto);

	List<${entityName}Dto> find(${entityName}SearchDto ${entityName?uncap_first}SearchDto);

	${entityName}Dto getById(${pkPropertyType} id);

	void add(${entityName}Entity ${entityName?uncap_first}Entity);

	void update(${entityName}Entity ${entityName?uncap_first}Entity);

	void delete(${pkPropertyType} id);

}
